package com.yhq.spring.lifecycle.controller;

import com.yhq.spring.lifecycle.service.FruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hqyin
 * @date 2023/4/24 4:37 下午
 */
@RestController
public class FruitController {
    @Autowired
    @Qualifier("appleServiceImpl")
    private FruitService fruitService;

    @GetMapping("/show")
    public String show() {
        fruitService.show();
        return "success";
    }

}
